<!--
/*
*All rights reserved: Json.
*Links:http://www.liyaoquan.cn.
*Links:http://imarkchina.cn.
*Links:http://www.imarkchina.cn.
*/
-->
<div class="sjwu1 rigth fr">
	<dl class="function" id="divSearchPanel">
		<dd class="function_c">
			<div>
				<form method="post" action="{U('search/s', 's')}">
					<input type="text" name="s" class="bdcs-search-form-input" id="bdcs-search-form-input" placeholder="{A('public/sitename')}" autocomplete="off" style="height: 28px; line-height: 28px;">
					<input type="submit" class="bdcs-search-form-submit " id="bdcs-search-form-submit" value="搜索">
				</form>
			</div>
		</dd>
	</dl>

	<dl class="function" id="divFavorites">
		<dt class="function_t">博客专题</dt>
		<dd class="function_c">
			<ul>
				{foreach $page $v}
				<li><a href="{U('show/index', array('id' => $v['id']))}">{$v['title']}</a></li>
				{/foreach}
			</ul>
		</dd>
	</dl>
	{if $check['ad_post_1']}
	<dl class="function" id="divComments">
		<dt class="function_t">赞助商广告</dt>
		<dd class="function_c">
			{A('ad/rightadone')}
		</dd>
	</dl>
	{/if}
	<dl class="function" id="divFavorites">
		<dt class="function_t">归档</dt>
		<dd class="function_c">
			<ul>
				<div id="refer_a" style="height:80px;overflow:hidden">
					{foreach $date $k $v}
					<li>
						<a href="{U('search/s', array('s'=> $v))}">{$k}</a>
					</li>
					{/foreach}
				</div>
				<a href="#" onclick="slideDiv();return false;">更多 >></a>
			</ul>
		</dd>
	</dl>
	<dl class="function" id="divPrevious">
		<dt class="function_t">热门推荐</dt>
		<dd class="function_c">
			<ul>
				{foreach $hot $v}
				<li><a href="{U('show/index', array('id' => $v['id']))}" title="{$v['title']}">{$v['title']}</a></li>
				{/foreach}
			</ul>
		</dd>
	</dl>

	<dl class="function" id="divComments">
		<dt class="function_t">最近评论</dt><dd class="function_c">
		<ul>
			<div id="pingluncss"></div>
		</ul>
	</dd>
</dl>
{if $check['fdlinks']}
<dl class="function" id="divLinkage">
	<dt class="function_t">友情链接</dt>
	<dd class="function_c">
		<ul>
			{foreach $links $k $v}
			<li><a href="{$v['url']}" target="_blank">{$v['title']}</a></li>
			{/foreach}
		</ul>
	</dd>
</dl>
{/if}
{if $check['ad_post_2']}
<dl class="function" id="divComments">
	<dt class="function_t">赞助商广告</dt>
	<dd class="function_c">
		{A('ad/rightadtow')}
	</dd>
</dl>
{/if}
<dl class="function" id="divContorPanel">
	<dt class="function_t">控制面板</dt>
	<dd class="function_c">
		<div>
			<span class="cp-hello">您好,欢迎到访网站!如果您是管理员~</span><br/><span class="cp-login">登录后台<a href="{U('root/index/index', 'root')}">-->>Login</a></span>
		</div>
	</dd>
</dl>
</div>
<script type="text/javascript">
	function slideDiv(){
		var obj = document.getElementById('refer_a').style;
		var height = 80;
		if(obj.height == ''){
			obj.height = height + 'px';
			obj.overflow = 'hidden';
		}else{
			obj.height = '';
			obj.overflow = '';
		}
	}
	$("#pingluncss").load("{U('public/rightp', 'rightp')}");
</script>